export const tableConfig = {
  blockTitle: '人员信息列表',
  fields: [
    { id: 'x01', type: 'index' },
    { id: '001', model: 'scenarioId', label: '页面编号', width: '' },
    { id: '002', model: 'scenarioName', label: '页面标题', width: '100px' },
    { id: '003', model: 'categorize', label: '页面分类', width: '' },
    { id: '004', model: 'description', label: '功能简述', width: '' },
    { id: '006', model: 'createTime', label: '创建时间', width: '' },
    { id: '005', model: 'isEntry', label: '入口页面', width: '80px' },
    {
      id: '007',
      type: 'button',
      label: '操作',
      width: '80px',
      opt: {
        type: 'primary',
        text: '编辑',
        action: 'navToDesign',
      },
    },
  ],
}

export const formConfig = {
  blockTitle: '页面信息',
  tableName: 'appList',
  groups: [
    {
      fields: [
        { id: '001', model: 'scenarioId', label: '页面编号', width: '', type: 'input', disabled: 'Y' },
        {
          id: '005',
          model: 'scenarioName',
          label: '页面标题',
          width: '',
          type: 'input',
          default: '',
          rules: [{ required: true, message: '必填项', trigger: 'blur' }],
        },
        {
          id: '010',
          model: 'categorize',
          label: '页面分类',
          width: '',
          type: 'select',
          opt: [
            { value: 'b673b073-6c5f-40e0-af0e-1c6cc4de345b', label: '未分类' },
            { value: '413b30b1-9a88-48b1-8dfc-1ee1cffa59f3', label: '档案管理' },
          ],
          rules: [{ required: true, message: '必填项', trigger: 'blur' }],
        },
        { id: '003', model: 'description', label: '功能简述', width: '', type: 'input' },
      ],
    },
  ],
}
